<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1
        function jia(a,b){
            var c=a+b;
            return c;
        }
        var res=jia(1,2);
        console.log(res);

        console.log("---------");

        // 2
        var jian=function(d,e){
            return d-e;
        }
        var res2=jian(50,10);
        console.log(res2);


        console.log("---------");

        
        // 3
        var t=new Function("a","b","return a+b");
        var res3=t(3,2);
        console.log(res3);

    </script>
</body>
</html>